Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 4.0 #12201

Draft
wants to merge 35 commits into
base: main
Choose a base branch
from
Draft

Release 4.0 #12201

wants to merge 35 commits into from

Conversation

jerelmiller
Copy link
Member

Staging branch for all 4.0 changes

@svc-apollo-docs
Copy link

svc-apollo-docs commented Dec 9, 2024

❌ Docs preview failed

The preview failed to build.

Build ID: 0a6fb8d78a6369f889a5ceb0

Errors

react/api/react/hooks

  • Cannot find module '@microsoft/tsdoc/schemas/tsdoc.schema.json' from '/var/task/node_modules/.pnpm/@microsoft+tsdoc-config@0.17.0/node_modules/@microsoft/tsdoc-config/lib'
    react/data/mutations

  • Cannot find module '@microsoft/tsdoc/schemas/tsdoc.schema.json' from '/var/task/node_modules/.pnpm/@microsoft+tsdoc-config@0.17.0/node_modules/@microsoft/tsdoc-config/lib'
    react/data/queries

  • Cannot find module '@microsoft/tsdoc/schemas/tsdoc.schema.json' from '/var/task/node_modules/.pnpm/@microsoft+tsdoc-config@0.17.0/node_modules/@microsoft/tsdoc-config/lib'
    graphos/routing/graphos-reporting

  • MinVersion component must have exactly one child

Copy link

changeset-bot bot commented Dec 9, 2024

🦋 Changeset detected

Latest commit: 033723b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@apollo/client Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

pkg-pr-new bot commented Dec 9, 2024

npm i https://pkg.pr.new/@apollo/client@12201

commit: 033723b

Copy link

netlify bot commented Dec 9, 2024

Deploy Preview for apollo-client-docs ready!

Name Link
🔨 Latest commit 033723b
🔍 Latest deploy log https://app.netlify.com/sites/apollo-client-docs/deploys/67b5ac5063f0e200086606f5
😎 Deploy Preview https://deploy-preview-12201--apollo-client-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

github-actions bot commented Dec 9, 2024

size-limit report 📦

Path Size
dist/apollo-client.min.cjs 0 B (-100% 🔽)
import { ApolloClient, InMemoryCache, HttpLink } from "dist/main.cjs" 0 B (-100% 🔽)
import { ApolloClient, InMemoryCache, HttpLink } from "dist/main.cjs" (production) 0 B (-100% 🔽)
import { ApolloClient, InMemoryCache, HttpLink } from "dist/index.js" 33.01 KB (-8.91% 🔽)
import { ApolloClient, InMemoryCache, HttpLink } from "dist/index.js" (production) 30.54 KB (-9.21% 🔽)
import { ApolloProvider } from "dist/react/index.js" 1.17 KB (-7.08% 🔽)
import { ApolloProvider } from "dist/react/index.js" (production) 1.15 KB (-7.11% 🔽)
import { useQuery } from "dist/react/index.js" 4.58 KB (-12.15% 🔽)
import { useQuery } from "dist/react/index.js" (production) 3.75 KB (-12.79% 🔽)
import { useLazyQuery } from "dist/react/index.js" 4.96 KB (-13.06% 🔽)
import { useLazyQuery } from "dist/react/index.js" (production) 4.13 KB (-13.6% 🔽)
import { useMutation } from "dist/react/index.js" 3.31 KB (-8.54% 🔽)
import { useMutation } from "dist/react/index.js" (production) 2.6 KB (-8.33% 🔽)
import { useSubscription } from "dist/react/index.js" 4.17 KB (-5.63% 🔽)
import { useSubscription } from "dist/react/index.js" (production) 3.29 KB (-5.37% 🔽)
import { useSuspenseQuery } from "dist/react/index.js" 5.43 KB (-7.52% 🔽)
import { useSuspenseQuery } from "dist/react/index.js" (production) 4.21 KB (-7.25% 🔽)
import { useBackgroundQuery } from "dist/react/index.js" 4.92 KB (-8.35% 🔽)
import { useBackgroundQuery } from "dist/react/index.js" (production) 3.67 KB (-8.87% 🔽)
import { useLoadableQuery } from "dist/react/index.js" 4.98 KB (-8.76% 🔽)
import { useLoadableQuery } from "dist/react/index.js" (production) 3.73 KB (-9.11% 🔽)
import { useReadQuery } from "dist/react/index.js" 2.17 KB (-36.68% 🔽)
import { useReadQuery } from "dist/react/index.js" (production) 2.1 KB (-37.43% 🔽)
import { useFragment } from "dist/react/index.js" 1.87 KB (-20.79% 🔽)
import { useFragment } from "dist/react/index.js" (production) 1.82 KB (-21.17% 🔽)
import { ApolloClient, InMemoryCache, HttpLink } from "dist/__cjs/index.cjs" 43.99 KB (+100% 🔺)
import { ApolloClient, InMemoryCache, HttpLink } from "dist/__cjs/index.cjs" (production) 41.51 KB (+100% 🔺)

jerelmiller and others added 24 commits December 13, 2024 11:48
Co-authored-by: Lenz Weber-Tronic <lorenz.weber-tronic@apollographql.com>
Co-authored-by: phryneas <phryneas@users.noreply.github.com>
Co-authored-by: Lenz Weber-Tronic <lorenz.weber-tronic@apollographql.com>
* knip experiment

* some more config

* run `knip --fix` once

* more configuration, fix issues

* Remove deprecated `resetApolloContext` export

* add another exlusion

* run prettier

* some cleanup

* api-extractor

* config adjustments

* add CI job

* remove `isNullish`

* add a small integration test showing various re-export situations a wrapping library might use

* prettier
* move from `ts-node` to `node --experimental-strip-types`, create `build.ts`

* remove `engines` field, specify `devEngines`

* adjust node version for CI

* fix up some more syntax

* prettier

* adjust precheck, bump minimal lockfile version to 3

* convert jest config to esm

* move `entryPoints` to TS, make it work in mjs and jest

* run rollup with ts config

* update a few more node calls

* some more typings

* move all scripts to function invocation

* migrate `prepareChangestsRelease` too

* remove scripts that are not called manually

* convert `prepareDist` to TS

* migrate `precheck.js`

* `version.js->ts`

* use jest ts config

* prettier

* dirname.cjs->cts

* dirname-related import fixes

* fix up new knip issues

* delete `devEngines` instead of `engines` field

* require node 23.6 instead of 22.6
jerelmiller and others added 10 commits February 7, 2025 14:28
* omit rollup build step

* verifyVersion: verify different entry point

* build esm and cjs (with `.cjs` extension) into different folders

* add a validation check to see if sourcemaps are correct

* adjustments

* remove `rewriteSourceMaps` step

the `inlineSources` tsconfig options already does that

* processInvariants step

* run `prepareDist`

* prettier

* fix up processInvariant exceptions

* delete test for rolled-up build

* tests: older compilation target

* additional tsconfig adjustments

* format

* fix up invariants processing

* add `version` step

* rename option

* migrate `inlineInheritDoc` step

* migrate `postprocessDist` over

* remove dead code

* fix up comment framing

* remove stray `console.log`

* update size limits

* move `renameJsFilesToCjs` file out

* remove obsolete setting of `type: "module"` in `prepareDist`

* `processComments`: exit early

* add changeset
* add babel transform

* remove unneccessary packages

* Update config/babel.ts

* Clean up Prettier, Size-limit, and Api-Extractor

---------

Co-authored-by: phryneas <4282439+phryneas@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants